using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Globalization;


public partial class webadmin_pages_DanhMuc_DanToc_detail : System.Web.UI.Page
{
    public Common comm = new Common();
    public DataRow catdtr;
    string sTemp; string id="";
    public string messageError;
    public string sMessage="0";
    public string sDatetime = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["id"])) id = comm.TextFormat(Request.QueryString["id"]).Trim();
                if (!string.IsNullOrEmpty(Request.QueryString["m"])) sMessage = comm.TextFormat(Request.QueryString["m"]).Trim();
                sTemp = "SELECT * FROM DanhMuc_chinh_sach";
                sTemp += " where ma_chinh_sach='" + id + "'";
                catdtr = comm.getDataTable(sTemp).Rows[0];

                if (!string.IsNullOrEmpty(catdtr["ngay_tao"].ToString()))
                    sDatetime = Convert.ToDateTime(catdtr["ngay_tao"]).ToString("dd/MM/yyyy hh:mm:ss");
            }
        }
        catch (Exception ex)
        {
            messageError = ex.Message.ToString();
        }
        
    }
}
